package com.neu.cloudFactory.VO;

import com.neu.cloudFactory.PO.Factory;
import com.neu.cloudFactory.PO.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RegisterVO {
    private String account;
    private String password;
    private String name;
    private String phone;
    private String character;
    private String factoryName;
    private String detail;

    public RegisterVO(User user, Factory factory){
        this.account = user.getAccount();
        this.password = user.getPassword();
        this.name = user.getName();
        this.phone = user.getPhone();
        this.character= user.getCharacter();
        this.factoryName = factory.getName();
        this.detail = factory.getDetail();
    }

}

